import cv2
import matplotlib.pyplot as plt
import numpy as np


def show(img):
    cv2.imshow("img", img)
    cv2.waitKey(0)
    cv2.destroyAllWindows()


img = cv2.imread("./01_Picture/09_AM.png")
up = cv2.pyrUp(img)
show(up)
down = cv2.pyrDown(img)
show(down)

# 拉普拉斯金字塔
down = cv2.pyrDown(img)
down_up = cv2.pyrUp(down)
l_1 = img - down_up
show(l_1)




